package com.common.enums;

public enum  ResponseBaseEnum {
    SUCCESS("000000","成功"),
    ERROR("999999","失败"),
    ER0000001("ER0000001","参数不能为空"),
    ER0000002("ER0000002","对应的设备号找不到对应的更新计划"),
    ER0000003("99999","未查到导入的对应的设备信息")
    ;
    private String returnCode;
    private String message;

    ResponseBaseEnum(String returnCode, String message) {
        this.returnCode = returnCode;
        this.message = message;
    }

//    public static String getMsg(String returnCode) {
//        for (ResponseBaseEnum c : ResponseBaseEnum.values()) {
//            if (c.getReturnCode() == returnCode) {
//                return c.msg;
//            }
//        }
//        return null;
//    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getReturnCode() {
        return returnCode;
    }

    public void setReturnCode(String returnCode) {
        this.returnCode = returnCode;
    }

}
